import { IsInt } from 'class-validator';
import { ApiProperty } from '@nestjs/swagger';
import { LoginUserResponseDto } from 'src/modules/auth/dto/login-user.dto';

export class EndMatchDto {
  @ApiProperty({ description: 'Match ID' })
  @IsInt()
  id: number;

  @ApiProperty({ description: 'Home player rally score' })
  @IsInt()
  homePlayerRally: number;

  @ApiProperty({ description: 'Away player rally score' })
  @IsInt()
  awayPlayerRally: number;

  user: LoginUserResponseDto;
}